package uestc.lj.gulishop.auth.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import uestc.lj.common.to.SocialUser;
import uestc.lj.common.utils.R;
import uestc.lj.gulishop.auth.vo.UserLoginVO;
import uestc.lj.gulishop.auth.vo.UserRegistVO;

/**
 * @Author:Crazlee
 * @Date:2021/6/10
 */
@FeignClient(value = "gulishop-member")
public interface MemberFeignService {
    @PostMapping("/member/member/regist")
    public R regist(@RequestBody UserRegistVO vo);

    @PostMapping("/member/member/login")
    public R login(@RequestBody UserLoginVO vo);

    @PostMapping("/member/member/oauth2/login")
    public R weiboLogin(@RequestBody SocialUser socialUser) throws Exception;


}
